{include file="public/head"/} 
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>后台管理</cite></a>
        <a><cite>停车场地管理中心</cite></a>
        <a><cite>业主福利车</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="#">
		<input type="hidden" value="{$id}" name="id"/>
			<div class="layui-input-inline">
				<select name="in_year" lay-filter="commname" id="commname">
					<option value="">年份</option>
					<option value="2019" {if isset($in_year)}{if $in_year == 2019} selected {/if}{/if}>2019</option>
					<option value="2020" {if isset($in_year)}{if $in_year == 2020} selected {/if}{/if}>2020</option>
					<option value="2021" {if isset($in_year)}{if $in_year == 2021} selected {/if}{/if}>2021</option>
				</select>
			</div>
			<div class="layui-input-inline">
				<select name="in_month" lay-filter="in_month" id="in_month">
					<option value="">月份</option>
					<option value="01" {if isset($in_month)}{if $in_month == "01"} selected {/if}{/if}>01</option>
					<option value="02" {if isset($in_month)}{if $in_month == "02"} selected {/if}{/if}>02</option>
					<option value="03" {if isset($in_month)}{if $in_month == "03"} selected {/if}{/if}>03</option>
					<option value="04" {if isset($in_month)}{if $in_month == "04"} selected {/if}{/if}>04</option>
					<option value="05" {if isset($in_month)}{if $in_month == "05"} selected {/if}{/if}>05</option>
					<option value="06" {if isset($in_month)}{if $in_month == "06"} selected {/if}{/if}>06</option>
					<option value="07" {if isset($in_month)}{if $in_month == "07"} selected {/if}{/if}>07</option>
					<option value="08" {if isset($in_month)}{if $in_month == "08"} selected {/if}{/if}>08</option>
					<option value="09" {if isset($in_month)}{if $in_month == "09"} selected {/if}{/if}>09</option>
					<option value="10" {if isset($in_month)}{if $in_month == "10"} selected {/if}{/if}>10</option>
					<option value="11" {if isset($in_month)}{if $in_month == "11"} selected {/if}{/if}>11</option>
					<option value="12" {if isset($in_month)}{if $in_month == "12"} selected {/if}{/if}>12</option>
				</select>
			</div>
          
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock>
		
        <span class="x-right" style="line-height:40px">收费总时长:{$feetime|ctime}</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th style="text-align: center; font-size: 16px; height: 30px;">停车场名称</th>
            <th style="text-align: center; font-size: 16px;">车牌号码</th>
			<th style="text-align: center; font-size: 16px;">入场时间</th>
            <th style="text-align: center; font-size: 16px;">出场时间</th>
			<th style="text-align: center; font-size: 16px;">停车时长</th>
			<th style="text-align: center; font-size: 16px;">收费时长</th>
          </tr>
        </thead>
        <tbody>
          {foreach $orderwelfare as $lis}
          <tr>
            <td style="text-align: center;">{$lis.parking_name}</td>
            <td style="text-align: center;">{$lis.car_number}</td>
			<td style="text-align: center;">{$lis.in_time|date="Y-m-d H:i:s",###}</td>
			<td style="text-align: center;">{$lis.out_time|date="Y-m-d H:i:s",###}</td>
            <td style="text-align: center;">{$lis.duration|ctime}</td>
            <td style="text-align: center;">{$lis.fee_duration|ctime}</td>
				
            </td>
          </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="page">
        <div>
            {$orderwelfare->render()}
          </div>
      </div>

    </div>
    <script>

      //删除
      function carDel(id, doc){
        if(confirm('确定要删除吗?')) 
        { 
          var url = "{:url('cardel')}?id=" + id
          // console.log(url)
          $('#' + doc).attr('href', url)
        } 
          return false; 
      }

      
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  </body>

</html>